import Vue from 'vue';
const that = Vue.prototype
/* 生成loading */
export const getLoadingFn = (className) => {
  let loading = that.$loading({
    target: `.${className}`,
    text: '拼命加载中',
    spinner: 'el-icon-loading',
    fullscreen: false
  });
  return loading;
}
